import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-02-02
 * Time:17:12
 */
public class Test {
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()) {

        }
    }

    public static void main(String[] args) {
        int[] push = {2,1,0};
        int[] pop = {1,2,0};
        Solution1 solution1 = new Solution1();
        boolean ret = solution1.IsPopOrder(push,pop);
        System.out.println(ret);
    }
}
